import request from "@/utils/request";

//发送邮箱验证码
export const getEmilCode = (address) =>{
    return request.get('/user/check',{
      params:{address}
    })
}
// 把数据传到数据库内,注册需要
export const uploadInformation = (inputCode,staffUsername,staffPassword) =>{
  return request.post(`/staff/register?inputCode=${inputCode}`,{
    staffUsername:staffUsername,
    staffPassword:staffPassword
  })
}
//商家账号密码登录
export const passwordLogin = (account, password) => {
    return request.get('/staff/login', {
      params:{
        staffUsername:account,
        staffPassword:password
      }
    })
  }